<template>
  <button :class="sizeName" @click="handleClick">
    <slot />
  </button>
</template>

<script>
export default {
  props: {
    size: {
      type: String,
      default: 'mini'
    }
  },
  computed: {
    className() {
      return this.size
    }
  },
  methods: {
    handleClick(e) {
      this.$emit('click', e)
    }
  }
}
</script>

<style lang="scss" scoped>
.mini {
  padding: 20px;
}
.large {
  padding: 40px;
}
</style>
